home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / language / j32.sit / j.rsrc / TEXT_1601_{..txt < prev    next >
Text File  |  1991-06-13  |  770b  |  15 lines

  1. {.  (Verb)
  2.  
  3. HEAD (_)  {.y selects the leading item of y; that is, y if y is an atom, and 0{y if not.
  4.  
  5. TAKE (1 _)  If x is an atom, x{.y takes from y an interval of |x items; beginning at the front if x>:0, ending at the tail if x<0:
  6.  
  7.      y        2{.y        4{.y        _4{.y
  8. 0 1   0 1            0 1         0 0
  9. 2 3   2 3            2 3         0 1
  10. 4 5                     4 5         2 3
  11.                            0 0         4 5
  12.  
  13. In an overtake (as in 4{.y and _4{y above), extra items consist of fills; zeros if y is numeric, boxed empties if it is boxed, and spaces otherwise. If y is an atom, the result of 1{.y is a one-element list. Finally, if $y is 0,s, then the fill items are s$0 or s$<'' or s$' '.
  14.  
  15. In general, x may be a list of length not more than $$y; the effect of element k is       (k{x){."(($$y)ΓÇôk) y.